//
// <copyright file="Register.aspx.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ZeCloud.Resto55.Business.Table;
using ZeCloud.Resto55.Business;

public partial class Register_aspx : System.Web.UI.Page {

    protected void Bt_create_Click(object sender, EventArgs e)
    {
        RestoService RestoServ = BusinessFacade.CreerFacade().GetRestoService();
        Resto resto = RestoServ.CreerRestoPar("Anonyme", TB_Nom.Text, TB_Adr1.Text, TB_Adr2.Text, int.Parse(TB_codepostal.Text), TB_ville.Text, TB_site.Text, TB_tel.Text);

        Response.Redirect("Consult.aspx?id=" + resto.uniqueId + "&nom=" + resto.nom);
    }
}